package com.cn.dream_order_server.pojo;

import java.util.ArrayList;
import java.util.List;

public class OrderOrdertypeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OrderOrdertypeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOrdertypeIdIsNull() {
            addCriterion("orderType_id is null");
            return (Criteria) this;
        }

        public Criteria andOrdertypeIdIsNotNull() {
            addCriterion("orderType_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrdertypeIdEqualTo(String value) {
            addCriterion("orderType_id =", value, "ordertypeId");
            return (Criteria) this;
        }

        public Criteria andOrdertypeIdNotEqualTo(String value) {
            addCriterion("orderType_id <>", value, "ordertypeId");
            return (Criteria) this;
        }

        public Criteria andOrdertypeIdGreaterThan(String value) {
            addCriterion("orderType_id >", value, "ordertypeId");
            return (Criteria) this;
        }

        public Criteria andOrdertypeIdGreaterThanOrEqualTo(String value) {
            addCriterion("orderType_id >=", value, "ordertypeId");
            return (Criteria) this;
        }

        public Criteria andOrdertypeIdLessThan(String value) {
            addCriterion("orderType_id <", value, "ordertypeId");
            return (Criteria) this;
        }

        public Criteria andOrdertypeIdLessThanOrEqualTo(String value) {
            addCriterion("orderType_id <=", value, "ordertypeId");
            return (Criteria) this;
        }

        public Criteria andOrdertypeIdLike(String value) {
            addCriterion("orderType_id like", value, "ordertypeId");
            return (Criteria) this;
        }

        public Criteria andOrdertypeIdNotLike(String value) {
            addCriterion("orderType_id not like", value, "ordertypeId");
            return (Criteria) this;
        }

        public Criteria andOrdertypeIdIn(List<String> values) {
            addCriterion("orderType_id in", values, "ordertypeId");
            return (Criteria) this;
        }

        public Criteria andOrdertypeIdNotIn(List<String> values) {
            addCriterion("orderType_id not in", values, "ordertypeId");
            return (Criteria) this;
        }

        public Criteria andOrdertypeIdBetween(String value1, String value2) {
            addCriterion("orderType_id between", value1, value2, "ordertypeId");
            return (Criteria) this;
        }

        public Criteria andOrdertypeIdNotBetween(String value1, String value2) {
            addCriterion("orderType_id not between", value1, value2, "ordertypeId");
            return (Criteria) this;
        }

        public Criteria andOrdertypeNamaIsNull() {
            addCriterion("orderType_nama is null");
            return (Criteria) this;
        }

        public Criteria andOrdertypeNamaIsNotNull() {
            addCriterion("orderType_nama is not null");
            return (Criteria) this;
        }

        public Criteria andOrdertypeNamaEqualTo(String value) {
            addCriterion("orderType_nama =", value, "ordertypeNama");
            return (Criteria) this;
        }

        public Criteria andOrdertypeNamaNotEqualTo(String value) {
            addCriterion("orderType_nama <>", value, "ordertypeNama");
            return (Criteria) this;
        }

        public Criteria andOrdertypeNamaGreaterThan(String value) {
            addCriterion("orderType_nama >", value, "ordertypeNama");
            return (Criteria) this;
        }

        public Criteria andOrdertypeNamaGreaterThanOrEqualTo(String value) {
            addCriterion("orderType_nama >=", value, "ordertypeNama");
            return (Criteria) this;
        }

        public Criteria andOrdertypeNamaLessThan(String value) {
            addCriterion("orderType_nama <", value, "ordertypeNama");
            return (Criteria) this;
        }

        public Criteria andOrdertypeNamaLessThanOrEqualTo(String value) {
            addCriterion("orderType_nama <=", value, "ordertypeNama");
            return (Criteria) this;
        }

        public Criteria andOrdertypeNamaLike(String value) {
            addCriterion("orderType_nama like", value, "ordertypeNama");
            return (Criteria) this;
        }

        public Criteria andOrdertypeNamaNotLike(String value) {
            addCriterion("orderType_nama not like", value, "ordertypeNama");
            return (Criteria) this;
        }

        public Criteria andOrdertypeNamaIn(List<String> values) {
            addCriterion("orderType_nama in", values, "ordertypeNama");
            return (Criteria) this;
        }

        public Criteria andOrdertypeNamaNotIn(List<String> values) {
            addCriterion("orderType_nama not in", values, "ordertypeNama");
            return (Criteria) this;
        }

        public Criteria andOrdertypeNamaBetween(String value1, String value2) {
            addCriterion("orderType_nama between", value1, value2, "ordertypeNama");
            return (Criteria) this;
        }

        public Criteria andOrdertypeNamaNotBetween(String value1, String value2) {
            addCriterion("orderType_nama not between", value1, value2, "ordertypeNama");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther1IsNull() {
            addCriterion("orderType_other1 is null");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther1IsNotNull() {
            addCriterion("orderType_other1 is not null");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther1EqualTo(String value) {
            addCriterion("orderType_other1 =", value, "ordertypeOther1");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther1NotEqualTo(String value) {
            addCriterion("orderType_other1 <>", value, "ordertypeOther1");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther1GreaterThan(String value) {
            addCriterion("orderType_other1 >", value, "ordertypeOther1");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther1GreaterThanOrEqualTo(String value) {
            addCriterion("orderType_other1 >=", value, "ordertypeOther1");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther1LessThan(String value) {
            addCriterion("orderType_other1 <", value, "ordertypeOther1");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther1LessThanOrEqualTo(String value) {
            addCriterion("orderType_other1 <=", value, "ordertypeOther1");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther1Like(String value) {
            addCriterion("orderType_other1 like", value, "ordertypeOther1");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther1NotLike(String value) {
            addCriterion("orderType_other1 not like", value, "ordertypeOther1");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther1In(List<String> values) {
            addCriterion("orderType_other1 in", values, "ordertypeOther1");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther1NotIn(List<String> values) {
            addCriterion("orderType_other1 not in", values, "ordertypeOther1");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther1Between(String value1, String value2) {
            addCriterion("orderType_other1 between", value1, value2, "ordertypeOther1");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther1NotBetween(String value1, String value2) {
            addCriterion("orderType_other1 not between", value1, value2, "ordertypeOther1");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther2IsNull() {
            addCriterion("orderType_other2 is null");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther2IsNotNull() {
            addCriterion("orderType_other2 is not null");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther2EqualTo(String value) {
            addCriterion("orderType_other2 =", value, "ordertypeOther2");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther2NotEqualTo(String value) {
            addCriterion("orderType_other2 <>", value, "ordertypeOther2");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther2GreaterThan(String value) {
            addCriterion("orderType_other2 >", value, "ordertypeOther2");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther2GreaterThanOrEqualTo(String value) {
            addCriterion("orderType_other2 >=", value, "ordertypeOther2");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther2LessThan(String value) {
            addCriterion("orderType_other2 <", value, "ordertypeOther2");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther2LessThanOrEqualTo(String value) {
            addCriterion("orderType_other2 <=", value, "ordertypeOther2");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther2Like(String value) {
            addCriterion("orderType_other2 like", value, "ordertypeOther2");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther2NotLike(String value) {
            addCriterion("orderType_other2 not like", value, "ordertypeOther2");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther2In(List<String> values) {
            addCriterion("orderType_other2 in", values, "ordertypeOther2");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther2NotIn(List<String> values) {
            addCriterion("orderType_other2 not in", values, "ordertypeOther2");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther2Between(String value1, String value2) {
            addCriterion("orderType_other2 between", value1, value2, "ordertypeOther2");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther2NotBetween(String value1, String value2) {
            addCriterion("orderType_other2 not between", value1, value2, "ordertypeOther2");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther3IsNull() {
            addCriterion("orderType_other3 is null");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther3IsNotNull() {
            addCriterion("orderType_other3 is not null");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther3EqualTo(String value) {
            addCriterion("orderType_other3 =", value, "ordertypeOther3");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther3NotEqualTo(String value) {
            addCriterion("orderType_other3 <>", value, "ordertypeOther3");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther3GreaterThan(String value) {
            addCriterion("orderType_other3 >", value, "ordertypeOther3");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther3GreaterThanOrEqualTo(String value) {
            addCriterion("orderType_other3 >=", value, "ordertypeOther3");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther3LessThan(String value) {
            addCriterion("orderType_other3 <", value, "ordertypeOther3");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther3LessThanOrEqualTo(String value) {
            addCriterion("orderType_other3 <=", value, "ordertypeOther3");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther3Like(String value) {
            addCriterion("orderType_other3 like", value, "ordertypeOther3");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther3NotLike(String value) {
            addCriterion("orderType_other3 not like", value, "ordertypeOther3");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther3In(List<String> values) {
            addCriterion("orderType_other3 in", values, "ordertypeOther3");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther3NotIn(List<String> values) {
            addCriterion("orderType_other3 not in", values, "ordertypeOther3");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther3Between(String value1, String value2) {
            addCriterion("orderType_other3 between", value1, value2, "ordertypeOther3");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther3NotBetween(String value1, String value2) {
            addCriterion("orderType_other3 not between", value1, value2, "ordertypeOther3");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther4IsNull() {
            addCriterion("orderType_other4 is null");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther4IsNotNull() {
            addCriterion("orderType_other4 is not null");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther4EqualTo(Integer value) {
            addCriterion("orderType_other4 =", value, "ordertypeOther4");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther4NotEqualTo(Integer value) {
            addCriterion("orderType_other4 <>", value, "ordertypeOther4");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther4GreaterThan(Integer value) {
            addCriterion("orderType_other4 >", value, "ordertypeOther4");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther4GreaterThanOrEqualTo(Integer value) {
            addCriterion("orderType_other4 >=", value, "ordertypeOther4");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther4LessThan(Integer value) {
            addCriterion("orderType_other4 <", value, "ordertypeOther4");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther4LessThanOrEqualTo(Integer value) {
            addCriterion("orderType_other4 <=", value, "ordertypeOther4");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther4In(List<Integer> values) {
            addCriterion("orderType_other4 in", values, "ordertypeOther4");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther4NotIn(List<Integer> values) {
            addCriterion("orderType_other4 not in", values, "ordertypeOther4");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther4Between(Integer value1, Integer value2) {
            addCriterion("orderType_other4 between", value1, value2, "ordertypeOther4");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther4NotBetween(Integer value1, Integer value2) {
            addCriterion("orderType_other4 not between", value1, value2, "ordertypeOther4");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther5IsNull() {
            addCriterion("orderType_other5 is null");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther5IsNotNull() {
            addCriterion("orderType_other5 is not null");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther5EqualTo(Integer value) {
            addCriterion("orderType_other5 =", value, "ordertypeOther5");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther5NotEqualTo(Integer value) {
            addCriterion("orderType_other5 <>", value, "ordertypeOther5");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther5GreaterThan(Integer value) {
            addCriterion("orderType_other5 >", value, "ordertypeOther5");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther5GreaterThanOrEqualTo(Integer value) {
            addCriterion("orderType_other5 >=", value, "ordertypeOther5");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther5LessThan(Integer value) {
            addCriterion("orderType_other5 <", value, "ordertypeOther5");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther5LessThanOrEqualTo(Integer value) {
            addCriterion("orderType_other5 <=", value, "ordertypeOther5");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther5In(List<Integer> values) {
            addCriterion("orderType_other5 in", values, "ordertypeOther5");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther5NotIn(List<Integer> values) {
            addCriterion("orderType_other5 not in", values, "ordertypeOther5");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther5Between(Integer value1, Integer value2) {
            addCriterion("orderType_other5 between", value1, value2, "ordertypeOther5");
            return (Criteria) this;
        }

        public Criteria andOrdertypeOther5NotBetween(Integer value1, Integer value2) {
            addCriterion("orderType_other5 not between", value1, value2, "ordertypeOther5");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}